<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>pointshop&nbsp;boxphp后台管理系统</title>
<include file="Public/header" />
<style type="text/css">
    .nav{
        height: 30px;
        padding-left:10px;
        margin-top: 20px 
    }
    .nav .total strong{
        color:red;
    }
    .nav  .s{
        margin-left:5px;
    }

    .nav  .s a{
        margin-left:5px;
        margin-right:5px;
        color:#000000;

    }

    .nav  .s a.cur{
       color:blue;
    }
</style>

<script type="text/javascript">
$(function(){
    $("#checkall").on('click',function(){
      var inputs=$(this).parents('.list_vmall_bort').find('input');
      $(this).attr('checked') ? inputs.attr('checked','checked') : inputs.removeAttr('checked');
    })
    $(".give").on('click',function(){
       var len=$('input[name="user_id[]"]:checked').length;
       if(len==0){
          alert('请至少选择一项'); return false;
       } 
       var user_ids = new Array();
       $.each($('input[name="user_id[]"]:checked'),function(){
          user_ids.push($(this).val());
       })
       window.location.href='/Member/give?user_ids='+user_ids;
       
   })
   
})
</script>
</head>
<body>
 
    
 
        <div class="list_vmall_man">
        	<div class="list_vmall_le">
            	<!-- <p class="list_vmall_bin"><a href="<{:U('level')}>" target="_black">会员等级管理</a></p> -->
               


                  <include file="./Apps/BoxAdmin/View/Public/adminMenu.html" />
               
               
            </div>
            <div class="list_vmall_rig">
            	<div class="list_vmall_bort">
                	<table width="100%" border="1" cellspacing="1" cellpadding="1">
                      <tr>
                        <form action="<{:U('integral')}>" method="get">
                        <td style="width:400px" height="46"><input type="text" name="kw" style="margin-left:5px;width: 300px" value="<{$_REQUEST['kw']}>" placeholder="用户名/姓名/会员编号/公司名称" /><input type="submit" onclick="$('#Export').val('0')" value="搜索" style="margin-left:4px; height:26px; color:#333" class="btn" /></td>
                        <input type="hidden" value="0" name="Export" id="Export"/>       
                        <input type="submit"  id="search_submit" style="display:none"/>
                        </form>
                         
                          
                     <!--    <td height="46"><a style="float:left" id="send_message" class="v_mall_q"><i class="v_mall_fi"></i>发送邮件</a></td> -->
                        <!--  <td height="46"><a href="javascript:" onclick="Export()" class="v_mall_q"><i class="v_mall_fi"></i>导出</a></td> -->

                        <td><div class="nav">
                     
                      </div>
                  </div>
                      </tr>
                    </table>
					<table width="100%" class="v_am_bor_t v_am_td" border="1" cellspacing="1" cellpadding="1">
                      <tr class="v_am_bg_top" height="30">
                         <td height="34" align="center" valign="middle" class="v_am_font"><input type="checkbox" id="checkall"></td>
                        <td height="34" align="center" valign="middle" class="v_am_font">ID</td>
                        <td height="34" align="center" valign="middle" class="v_am_font">用户名</td>
                        <td height="34" align="center" valign="middle" class="v_am_font">会员编号</td>
                        <td height="34" align="center" valign="middle" class="v_am_font">所属公司</td>
              <td height="34" align="center" valign="middle" class="v_am_font">个人积分</td>
					    <td height="34" align="center" valign="middle" class="v_am_font">公司积分</td>
                        <td height="34" align="center" valign="middle" class="v_am_font" style="border-right:0;">操作</td>

                      
                      </tr>
                     <volist name="data" id="vo">
                      <tr>
                         <td height="34" align="center" valign="middle" class="v_am_font"><input type="checkbox" name="user_id[]" value="<{$vo.user_id}>"></td>

                        <td height="36" align="center" valign="middle"><{$vo.user_id}></td>
                        <td height="36" align="center" valign="middle"><{$vo.user_name}></td>
                        <td height="36" align="center" valign="middle"><{$vo.number}></td>
                        <td height="36" align="center" valign="middle"><{$vo.store_name}></td>
                        <td height="36" align="center" valign="middle"><{$vo.integral}></td>
						            <td height="36" align="center" valign="middle"><{$vo.integral_company}></td>
                        <td style="border-right:0;"  height="36" align="center" valign="middle">
                          
                          
                            <a  href="<{:U('integral_visit',array('user_id'=> $vo['user_id']))}>" class="btn"><i class="v_mall_tubg v_mall_tj2"></i>&nbsp;积分记录</a>
                            <a onclick="return confirm('确认要回收他的公司积分吗？');" href="<{:U('hs',array('user_id'=>$vo['user_id']))}>" class="btn"><i class="v_mall_tubg v_mall_tj3"></i>&nbsp;积分回收</a>
                      
                        </td>
                       
                      </tr>
                      </volist>  
                    
                    </table>
                    <a class="btn give" style="padding:2px 10px;margin:5px">赠送积分</a>
					
                   <include file="./Apps/BoxAdmin/View/Ace/Public/pager.html" />

                
                </div>
            </div>
       
        
    </div>


   <div id="send-message" class="add-form">
        <div class="title">发送消息<span>×</span></div>
        <form id="form2">
            <div class="s">
                 标题： <input style="width:200px" type="text" name="title" id="title" />
            </div>
            <div class="s">
               <textarea placeholder="消息内容" name="content"></textarea>
            </div>
            <button class="v_mall_q_1 yes" type="submit" style="border:0; height:32px; padding-top:0; cursor:pointer;">确  定</button>
             <button class="v_mall_q_1 colse" type="button" style="border:0; height:32px; padding-top:0; cursor:pointer;background: #C0C0C0;">取　消</button>
        </form>

    </div>



    <div class="notice">
        <div class="title">发送状态<span>×</span></div>
    </div>
 
</body>
</html>
